module.exports = (api) => {
  api.injectFeature({
    name: "Store",
    value: "store",
    short: "Store",
    description: "使用状态管理工具",
    checked: true,
  });

  api.injectPrompt({
    name: "selectStore",
    type: "list",
    message: "选择一种状态管理工具库",
    when: (answer) => answer.features.includes("store"),
    description: "选择一种状态管理工具库",
    choices: [
      {
        name: "Pinia",
        value: "pinia",
        short: "Pinia",
      },
      {
        name: "Vuex",
        value: "vuex",
        short: "Vuex",
      },
    ],
  });
};
